/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cz.muni.fi.pb138.videodes.api.base;

import org.xmldb.api.base.Resource;
import org.xmldb.api.base.XMLDBException;

/**
 *
 * @author pseudo
 * 
 * This interface provide functionality for process raw database results
 */
public interface RowMapper<T> {
    /**
     * 
     * @param rs resource with raw query result
     * @return processed result
     * @throws XMLDBException 
     */
    T map(Resource rs) throws XMLDBException;
}
